package com.ytzl.itrip.service.userinfo;
import com.ytzl.itrip.pojo.po.userinfo.ItripUserLinkUser;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import com.ytzl.itrip.pojo.vo.userinfo.OftenLinkUserVO;



/**
 * Description: 本类用于
 * Created by gengshu on 2019/12/30 17:44
 */
public interface OftenLinkUserService {
    /**
     * 查询常用联系人
     *
     * @param id
     * @return
     * @throws Exception
     */
    List<ItripUserLinkUser> queryItripUserLinkUserById(@Param("id") Integer id, @Param("name") String name) throws Exception;

    /**
     * 根据id删除常用联系人
     *
     * @param id 联系人id
     * @return 删除结果
     * @throws Exception 抛出异常
     */
    boolean deleteLinkUserById(@Param("id") Integer id) throws Exception;

    /**
     * 添加常用旅客信息
     *
     * @param oftenLinkUserVo
     * @return
     * @throws Exception
     */
    int addOftenLinkUser(OftenLinkUserVO oftenLinkUserVo, long userId) throws Exception;

    /**
     * 修改常用联系人
     *
     * @param oftenLinkUserVO
     * @return
     * @throws Exception
     */
    Integer updateOftenLinkUser(OftenLinkUserVO oftenLinkUserVO) throws Exception;
}
